<!-- HTML header for doxygen 1.9.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.6"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>COMMONS-NET: commonsNet.io.ToNetAsciiInputStream&lt;T&gt; 模板类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  $(document).ready(function() { init_search(); });
/* @license-end */
</script>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">COMMONS-NET
   </div>
  </td>
    <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <span id="MSearchSelect"                onmouseover="return searchBox.OnSearchSelectShow()"                onmouseout="return searchBox.OnSearchSelectHide()">&#160;</span>
          <input type="text" id="MSearchField" value="" placeholder="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
          </span>
        </div>
</td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.6 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('classcommonsNet_1_1io_1_1ToNetAsciiInputStream.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pac-methods">包函数</a> &#124;
<a href="#pri-methods">Private 成员函数</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="classcommonsNet_1_1io_1_1ToNetAsciiInputStream-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">commonsNet.io.ToNetAsciiInputStream&lt;T&gt; 模板类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>将本地换行符转换为NetAscii换行符  
 <a href="classcommonsNet_1_1io_1_1ToNetAsciiInputStream.html#details">更多...</a></p>
<div class="dynheader">
类 commonsNet.io.ToNetAsciiInputStream&lt;T&gt; 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classcommonsNet_1_1io_1_1ToNetAsciiInputStream.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a2506d4563ca05af61e1491542ca90e71"><td class="memItemLeft" align="right" valign="top">public&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1io_1_1ToNetAsciiInputStream.html#a2506d4563ca05af61e1491542ca90e71">init</a> (source: T)</td></tr>
<tr class="separator:a2506d4563ca05af61e1491542ca90e71"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a4c1fbecea5d54b58c667efe46e4fd6"><td class="memItemLeft" align="right" valign="top">public override func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1io_1_1ToNetAsciiInputStream.html#a9a4c1fbecea5d54b58c667efe46e4fd6">read</a> (buffer: Array&lt;Byte&gt;): Int64</td></tr>
<tr class="separator:a9a4c1fbecea5d54b58c667efe46e4fd6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab81a81fb2a85b380b8437d789942391"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1io_1_1ToNetAsciiInputStream.html#aab81a81fb2a85b380b8437d789942391">isClosed</a> (): Bool</td></tr>
<tr class="separator:aab81a81fb2a85b380b8437d789942391"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad477523a0c56a2d723c482550fff02fa"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1io_1_1ToNetAsciiInputStream.html#ad477523a0c56a2d723c482550fff02fa">close</a> (): Unit</td></tr>
<tr class="separator:ad477523a0c56a2d723c482550fff02fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pac-methods" name="pac-methods"></a>
包函数</h2></td></tr>
<tr class="memitem:abf212a6a6c7bdc9f45830de09cca8c61"><td class="memItemLeft" align="right" valign="top">prop&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1io_1_1ToNetAsciiInputStream.html#abf212a6a6c7bdc9f45830de09cca8c61">resource</a> : T</td></tr>
<tr class="separator:abf212a6a6c7bdc9f45830de09cca8c61"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-methods" name="pri-methods"></a>
Private 成员函数</h2></td></tr>
<tr class="memitem:af1f0111b038e77344bb07167b551f2ba"><td class="memItemLeft" align="right" valign="top">private func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1io_1_1ToNetAsciiInputStream.html#af1f0111b038e77344bb07167b551f2ba">read</a> (): ?Byte</td></tr>
<tr class="separator:af1f0111b038e77344bb07167b551f2ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-attribs" name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:abd42f222a233db11a8e8f430e514076e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1io_1_1ToNetAsciiInputStream.html#abd42f222a233db11a8e8f430e514076e">let source</a> : T</td></tr>
<tr class="separator:abd42f222a233db11a8e8f430e514076e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8334ef940b43bc300fe4e798af6816f0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1io_1_1ToNetAsciiInputStream.html#a8334ef940b43bc300fe4e798af6816f0">var lastByte</a> : Byte = 0</td></tr>
<tr class="separator:a8334ef940b43bc300fe4e798af6816f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af579cfa4795ec88ae1dee07b520e6ad0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1io_1_1ToNetAsciiInputStream.html#af579cfa4795ec88ae1dee07b520e6ad0">var status</a> : Int64</td></tr>
<tr class="separator:af579cfa4795ec88ae1dee07b520e6ad0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0cf061bd95a39a8aee9e917ff03bc596"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1io_1_1ToNetAsciiInputStream.html#a0cf061bd95a39a8aee9e917ff03bc596">static let NOTHING_SPECIAL</a> = 0;</td></tr>
<tr class="separator:a0cf061bd95a39a8aee9e917ff03bc596"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a03dd3d66a24449d99623a4849dc48d95"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1io_1_1ToNetAsciiInputStream.html#a03dd3d66a24449d99623a4849dc48d95">static let LAST_WAS_CR</a> = 1;</td></tr>
<tr class="separator:a03dd3d66a24449d99623a4849dc48d95"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd8174134f78f8276445571bd45972ea"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1io_1_1ToNetAsciiInputStream.html#acd8174134f78f8276445571bd45972ea">static let LAST_WAS_NL</a> = 2;</td></tr>
<tr class="separator:acd8174134f78f8276445571bd45972ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>将本地换行符转换为NetAscii换行符 </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a2506d4563ca05af61e1491542ca90e71" name="a2506d4563ca05af61e1491542ca90e71"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2506d4563ca05af61e1491542ca90e71">&#9670;&#160;</a></span>init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public <a class="el" href="classcommonsNet_1_1io_1_1ToNetAsciiInputStream.html">commonsNet.io.ToNetAsciiInputStream</a>&lt;T&gt;.init </td>
          <td>(</td>
          <td class="paramname"><em>source</em>:&#160;</td>
          <td class="paramtype">T</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="ad477523a0c56a2d723c482550fff02fa" name="ad477523a0c56a2d723c482550fff02fa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad477523a0c56a2d723c482550fff02fa">&#9670;&#160;</a></span>close()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func <a class="el" href="classcommonsNet_1_1io_1_1ToNetAsciiInputStream.html">commonsNet.io.ToNetAsciiInputStream</a>&lt;T&gt;.close </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td>: Unit </td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="aab81a81fb2a85b380b8437d789942391" name="aab81a81fb2a85b380b8437d789942391"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aab81a81fb2a85b380b8437d789942391">&#9670;&#160;</a></span>isClosed()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func <a class="el" href="classcommonsNet_1_1io_1_1ToNetAsciiInputStream.html">commonsNet.io.ToNetAsciiInputStream</a>&lt;T&gt;.isClosed </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td>: Bool </td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="af1f0111b038e77344bb07167b551f2ba" name="af1f0111b038e77344bb07167b551f2ba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af1f0111b038e77344bb07167b551f2ba">&#9670;&#160;</a></span>read() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">private func <a class="el" href="classcommonsNet_1_1io_1_1ToNetAsciiInputStream.html">commonsNet.io.ToNetAsciiInputStream</a>&lt;T&gt;.read </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td>: ?Byte </td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a9a4c1fbecea5d54b58c667efe46e4fd6" name="a9a4c1fbecea5d54b58c667efe46e4fd6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9a4c1fbecea5d54b58c667efe46e4fd6">&#9670;&#160;</a></span>read() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public override func <a class="el" href="classcommonsNet_1_1io_1_1ToNetAsciiInputStream.html">commonsNet.io.ToNetAsciiInputStream</a>&lt;T&gt;.read </td>
          <td>(</td>
          <td class="paramname"><em>buffer</em>:&#160;</td>
          <td class="paramtype">Array&lt;Byte&gt;</td><td>)</td>
          <td>: Int64 </td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="abf212a6a6c7bdc9f45830de09cca8c61" name="abf212a6a6c7bdc9f45830de09cca8c61"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abf212a6a6c7bdc9f45830de09cca8c61">&#9670;&#160;</a></span>resource()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">prop <a class="el" href="classcommonsNet_1_1io_1_1ToNetAsciiInputStream.html">commonsNet.io.ToNetAsciiInputStream</a>&lt;T&gt;.resource</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">package</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="abd42f222a233db11a8e8f430e514076e" name="abd42f222a233db11a8e8f430e514076e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abd42f222a233db11a8e8f430e514076e">&#9670;&#160;</a></span>let source</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classcommonsNet_1_1io_1_1ToNetAsciiInputStream.html">commonsNet.io.ToNetAsciiInputStream</a>&lt;T&gt;.let source : T</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a03dd3d66a24449d99623a4849dc48d95" name="a03dd3d66a24449d99623a4849dc48d95"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a03dd3d66a24449d99623a4849dc48d95">&#9670;&#160;</a></span>static let LAST_WAS_CR</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classcommonsNet_1_1io_1_1ToNetAsciiInputStream.html">commonsNet.io.ToNetAsciiInputStream</a>&lt;T&gt;.static let LAST_WAS_CR = 1;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="acd8174134f78f8276445571bd45972ea" name="acd8174134f78f8276445571bd45972ea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acd8174134f78f8276445571bd45972ea">&#9670;&#160;</a></span>static let LAST_WAS_NL</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classcommonsNet_1_1io_1_1ToNetAsciiInputStream.html">commonsNet.io.ToNetAsciiInputStream</a>&lt;T&gt;.static let LAST_WAS_NL = 2;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a0cf061bd95a39a8aee9e917ff03bc596" name="a0cf061bd95a39a8aee9e917ff03bc596"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0cf061bd95a39a8aee9e917ff03bc596">&#9670;&#160;</a></span>static let NOTHING_SPECIAL</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classcommonsNet_1_1io_1_1ToNetAsciiInputStream.html">commonsNet.io.ToNetAsciiInputStream</a>&lt;T&gt;.static let NOTHING_SPECIAL = 0;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a8334ef940b43bc300fe4e798af6816f0" name="a8334ef940b43bc300fe4e798af6816f0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8334ef940b43bc300fe4e798af6816f0">&#9670;&#160;</a></span>var lastByte</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classcommonsNet_1_1io_1_1ToNetAsciiInputStream.html">commonsNet.io.ToNetAsciiInputStream</a>&lt;T&gt;.var lastByte : Byte = 0</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="af579cfa4795ec88ae1dee07b520e6ad0" name="af579cfa4795ec88ae1dee07b520e6ad0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af579cfa4795ec88ae1dee07b520e6ad0">&#9670;&#160;</a></span>var status</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classcommonsNet_1_1io_1_1ToNetAsciiInputStream.html">commonsNet.io.ToNetAsciiInputStream</a>&lt;T&gt;.var status : Int64</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>src/io/<a class="el" href="to__net__ascii__io__stream_8cj.html">to_net_ascii_io_stream.cj</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.9.6-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacecommonsNet.html">commonsNet</a></li><li class="navelem"><a class="el" href="namespacecommonsNet_1_1io.html">io</a></li><li class="navelem"><a class="el" href="classcommonsNet_1_1io_1_1ToNetAsciiInputStream.html">ToNetAsciiInputStream</a></li>
    <li class="footer">制作者 <img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.6 </li>
  </ul>
</div>
</body>
</html>
